<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
</head>
<body>
<div id="app">
  <ul>
    <li v-for="(item,key,index) in person" :key="item">{{index}} -- {{key}}:{{item}}</li>
  </ul>
</div>


<script src="../js/vue.js"></script>
<script>
  // 1.创建Vue的实例对象
  const app = Vue.createApp({
    data(){
      return{
        person: {
          name: '秦',
          age: 20,
          friends: ['张三','李四']
        }
      }
    }
  }).mount('#app');
</script>
</body>
</html>